﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.ServiceModel;
using ZgOffice.Client.DelegateEvent;

namespace ZgOffice.Client
{
    public partial class LoginForm : DevExpress.XtraEditors.XtraForm
    {
        
        public LoginForm()
        {
            InitializeComponent();
        }

        private void loginBtn_Click(object sender, EventArgs e)
        {
            Program.LoginInfo.UserName = userName.Text;
            Program.LoginInfo.Pwd = Program.getPass(pwd.Text);
            Program.LoginInfo.Database = dataBase.Text;

            this.DialogResult = DialogResult.OK;

            //if (Program.client.Login(Program.LoginInfo)== true)
            //{
            //    this.DialogResult = DialogResult.OK;
            //}
            //else
            //{
            //    this.DialogResult = DialogResult.Retry;
            //}
            
        }
    }
}